<!--
See http://developer.yahoo.com/ypatterns/pattern.php?pattern=searchpagination
-->

<? if ($this->pageCount > 1): ?>
<div id="paginationControl">
    <!-- Previous page link -->
    <? if (isset($this->previous)): ?>
    <a href="<?= $this->url(array('page' => $this->previous)); ?>">&lt; Previous</a> |
    <? endif; ?>

    <!-- Numbered page links -->
    <? foreach ($this->pagesInRange as $page): ?>
        <? if ($page != $this->current): ?>
        <a href="<?= $this->url(array('page' => $page)); ?>"><?= $page; ?></a> |
        <? else: ?>
        <?= $page; ?> |
        <? endif; ?>
    <? endforeach; ?>

    <!-- Next page link -->
    <? if (isset($this->next)): ?>
    <a href="<?= $this->url(array('page' => $this->next)); ?>">Next &gt;</a>
    <? else: ?>
    <span class="disabled">Next &gt;</span>
    <? endif; ?>
</div>
<? endif; ?>